package strategy;

/**
 * @Author: linKe
 * @Date: 2022/1/15 16:15
 * @FileName: RubberDuck
 * @version: 1.0
 * @Description: 橡皮鸭
 */
public class RubberDuck extends Duck {

    public RubberDuck(FlyBehavior flyBehavior, ChirpBehavior chirpBehavior) {
        super(flyBehavior, chirpBehavior);
    }

    @Override
    public void display() {
        System.out.println("我是橡皮鸭");
    }

    @Override
    public void swim() {
        System.out.println("我会游泳");
    }

}
